package com.example.back.dto.resp;


import com.alibaba.fastjson.annotation.JSONField;
import com.example.common.entity.HospitalDepartment;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@ApiModel(value = "科室分类返回体")
public class HospitalDepartmentResp implements Serializable {

    @ApiModelProperty(value = "用户id")
    @JSONField(name = "ID")
    private Long ID;
    @ApiModelProperty(value = "创建人")
    @JSONField(name = "CreateMember")
    private String CreateMember;
    @ApiModelProperty(value = "姓名")
    @JSONField(name = "Name")
    private String Name;
    @ApiModelProperty(value = "上级科室")
    @JSONField(name = "pName")
    private String pName;

    @ApiModelProperty(value = "标签")
    @JSONField(name = "types")
    private int types;

    @ApiModelProperty(value = "标签")
    @JSONField(name = "Label")
    private String Label;

    @ApiModelProperty(value = "创建时间")
    @JSONField(name = "CreateTime")
    private Date CreateTime;
    @ApiModelProperty(value = "禁用状态(false:启用,true:禁用)")
    @JSONField(name = "Disable")
    private Boolean Disable;
    @ApiModelProperty(value = "父ID")
    @JSONField(name = "pdId")
    private Long pdId;


    @Transient
    @ApiModelProperty(value = "子对象集合")
    @JSONField(name = "children")
    private List<HospitalDepartmentResp> children;

}
